import request from '@/utils/request'

// 查询零部件订单列表
export function listPurchasepartorder(query) {
  return request({
    url: '/purchasepartorder/purchasepartorder/list',
    method: 'get',
    params: query
  })
}

// 查询零部件订单详细
export function getPurchasepartorder(purchasepartorderid) {
  return request({
    url: '/purchasepartorder/purchasepartorder/' + purchasepartorderid,
    method: 'get'
  })
}

// 新增零部件订单
export function addPurchasepartorder(data) {
  return request({
    url: '/purchasepartorder/purchasepartorder',
    method: 'post',
    data: data
  })
}

// 修改零部件订单
export function updatePurchasepartorder(data) {
  return request({
    url: '/purchasepartorder/purchasepartorder',
    method: 'put',
    data: data
  })
}

// 删除零部件订单
export function delPurchasepartorder(purchasepartorderid) {
  return request({
    url: '/purchasepartorder/purchasepartorder/' + purchasepartorderid,
    method: 'delete'
  })
}
